package com.kiki.singer_category.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kiki.singer_category.mapper.SingerCategoryMapper;
import com.kiki.singer_category.domain.SingerCategory;
import com.kiki.singer_category.service.ISingerCategoryService;

/**
 * 歌手分类Service业务层处理
 * 
 * @author 林志毅
 * @date 2025-05-01
 */
@Service
public class SingerCategoryServiceImpl implements ISingerCategoryService 
{
    @Autowired
    private SingerCategoryMapper singerCategoryMapper;

    /**
     * 查询歌手分类
     * 
     * @param id 歌手分类主键
     * @return 歌手分类
     */
    @Override
    public SingerCategory selectSingerCategoryById(Long id)
    {
        return singerCategoryMapper.selectSingerCategoryById(id);
    }

    /**
     * 查询歌手分类列表
     * 
     * @param singerCategory 歌手分类
     * @return 歌手分类
     */
    @Override
    public List<SingerCategory> selectSingerCategoryList(SingerCategory singerCategory)
    {
        return singerCategoryMapper.selectSingerCategoryList(singerCategory);
    }

    /**
     * 新增歌手分类
     * 
     * @param singerCategory 歌手分类
     * @return 结果
     */
    @Override
    public int insertSingerCategory(SingerCategory singerCategory)
    {
        return singerCategoryMapper.insertSingerCategory(singerCategory);
    }

    /**
     * 修改歌手分类
     * 
     * @param singerCategory 歌手分类
     * @return 结果
     */
    @Override
    public int updateSingerCategory(SingerCategory singerCategory)
    {
        return singerCategoryMapper.updateSingerCategory(singerCategory);
    }

    /**
     * 批量删除歌手分类
     * 
     * @param ids 需要删除的歌手分类主键
     * @return 结果
     */
    @Override
    public int deleteSingerCategoryByIds(Long[] ids)
    {
        return singerCategoryMapper.deleteSingerCategoryByIds(ids);
    }

    /**
     * 删除歌手分类信息
     * 
     * @param id 歌手分类主键
     * @return 结果
     */
    @Override
    public int deleteSingerCategoryById(Long id)
    {
        return singerCategoryMapper.deleteSingerCategoryById(id);
    }

    @Override
    public List<SingerCategory> getSingerCategoryList() {
        return singerCategoryMapper.getSingerCategoryList();
    }
}
